detention in violation of the procedure